package com.doit.mr.day01;

import com.doit.mr.day01.MyUtil.MyUtils;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;

/**
 * @DATE 2021/12/8/11:07
 * @Author MDK
 * @Version 2021.2.2
 **/
public class C08_Other {
    public static void main(String[] args) throws Exception {
        FileSystem fs = MyUtils.getFileSystem();
        fs.delete(new Path(""),true);   //hdfs dfs -rm -r
        fs.exists(new Path(""));            //判断路径是否存在
        fs.mkdirs(new Path("/a/b/c"));      //hdfs dfs -mkdir  -p

        fs.close();
    }
}
